package cn.cque.dao;

import cn.cque.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: XWC
 * @InterfaceName: OrderDao
 * @Date: 2020/10/5
 * @Time: 14:43
 * @Description:
 */
public interface OrderDao {
    Integer insert(Order order);

    int updateOrder(Order order);

    Order findById(@Param("oid") String id);

    List<Order> findAllByUid(@Param("uid") String uid);

    List<Order> findAll();

    Integer deleteOrder(@Param("oid") String id);
}
